package inseniarlingua.tokenizer;

public class Word {
	String value;
	public static Word NULL_WORD = new Word(""); 

	public String getValue() {
		return value;
	}
	
	public void setValue(String value) {
		this.value = value;
	}
	
	public Word() {
		super();
	}

	public Word(String value) {
		super();
		this.value = value;
	}

	@Override
	public String toString() {
		return value;
	}

	@Override
	public boolean equals(Object obj) {
		if ( ! (obj instanceof Word) ) return false;
		Word token = (Word)obj;
		return this.value.equals(token.value);
	}
}
